package com.star.uc.contract.enums;

import com.star.common.core.contract.enums.IEnum;
import com.star.common.kit.enums.EnumValueResolver;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 限制类型
 * 如果需要根据code获取desc，请使用
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2023/11/1 18:34
 * @see com.star.common.kit.enums.EnumUtils#getByCode(java.lang.Class, java.lang.Object)
 */
@Getter
@AllArgsConstructor
public enum LimitTypeEnum implements IEnum<String>, EnumValueResolver<LimitTypeEnum, String> {
    IP("ip", "ip地址"),
    EMAIL("email", "邮箱"),
    PHONE("phone", "手机号");
    private final String code;
    private final String desc;

    /**
     * 获取枚举的code
     *
     * @return
     */
    @Override
    public String getCode() {
        return null;
    }

    /**
     * 获取枚举的描述信息
     *
     * @return
     */
    @Override
    public String getDesc() {
        return null;
    }
}
